<!-- BEGIN HEADER -->   
   <div class="header navbar navbar-inverse navbar-fixed-top">
      <!-- BEGIN TOP NAVIGATION BAR -->
      <div class="header-inner">
         <!-- BEGIN LOGO -->  
         <a class="navbar-brand" href="index.html">
         <img src="${base}/assets/img/logo.png" alt="logo" class="img-responsive" />
         </a>
         <!-- END LOGO -->
         <!-- BEGIN RESPONSIVE MENU TOGGLER --> 
         <a href="javascript:;" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
         <img src="${base}/assets/img/menu-toggler.png" alt="" />
         </a> 
         <!-- END RESPONSIVE MENU TOGGLER -->
         <!-- BEGIN TOP NAVIGATION MENU -->
         <ul class="nav navbar-nav pull-right">
         <#if stack.context["session"]?exists><#assign s = stack.context["session"]></#if>
            <!-- BEGIN INBOX DROPDOWN -->
            <li class="dropdown" id="header_inbox_bar">
               <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"
                  data-close-others="true">
               <i class="icon-time"></i>
               <span class="badge"><#if s["dbsx_counts"]?exists>
               			${s["dbsx_counts"]}
               			<#else></#if></span>
               </a>
               <ul class="dropdown-menu extended inbox">
                  <li>
                     <p>你有<#if s["dbsx_counts"]?exists>
               			${s["dbsx_counts"]}
               			<#else></#if> 项未完成的待办事项</p>
                  </li>
                  <li>
                     <ul class="dropdown-menu-list scroller" style="height: 200px;">
                     <#if s["toDoItemList"]?exists>
                     	<#list s["toDoItemList"] as toDoItem>
                        <li>  
                           <a href="#">
                           <span class="label label-sm label-icon label-success"><i class="icon-plus"></i></span>
                           	${toDoItem.theme}
                           <span class="time">Just now</span>
                           </a>
                        </li>
                        </#list>
                      </#if>
                     </ul>
                  </li>
                  <li class="external">
                     <a href="${base}/admin/dbsx!list.action">查看所有消息 <i class="m-icon-swapright"></i></a>
                  </li>
               </ul>
            </li>
            <!-- END INBOX DROPDOWN -->
            <!-- BEGIN TODO DROPDOWN -->
            <li class="dropdown" id="header_task_bar">
               <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
               <i class="icon-calendar"></i>
               <span class="badge"><#if s["fwjh_counts"]?exists>${s["fwjh_counts"]}<#else></#if></span>
               </a>
               <ul class="dropdown-menu extended tasks">
                  <li>
                     <p>你有<#if s["fwjh_counts"]?exists>
               			${s["fwjh_counts"]}
               			<#else></#if>项未完成的服务计划</p>
                  </li>
                  <li>
                     <ul class="dropdown-menu-list scroller" style="height: 200px;">
                     <#if s["scheduleList"]?exists>
                     	<#list s["scheduleList"] as schedule>
                        <li>  
                           <a href="#">
                           <span class="label label-sm label-icon label-success"><i class="icon-plus"></i></span>
                           	${schedule.theme}
                           <span class="time">Just now</span>
                           </a>
                        </li>
                        </#list>
                      </#if> 
                     </ul>
                  </li>
                  <li class="external">   
                     <a href="${base}/admin/schedule!list.action">查看所有服务计划<i class="m-icon-swapright"></i></a>
                  </li>
               </ul>
            </li>
            <!-- BEGIN USER LOGIN DROPDOWN -->
            <li class="dropdown user">
            	
               <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
               <img alt=""<#if s["picAddress"]?exists>
               		src="${base}/${s["picAddress"]}"
               <#else>
               		src="${base}/assets/img/unkonwEmployee_small.png"
               </#if> width = "29px;" height = "29px;" />
               <span class="username">
					<#if s["loginAdminUsername"]?exists>
						${s["loginAdminUsername"]}
					</#if>
				</span>
				<input type = "hidden" value = "<#if s["id"]?exists>${s["id"]}</#if>" id = "UserId"/>
               <i class="icon-angle-down"></i>
               </a>
               <ul class="dropdown-menu">
               
               	  <li><a href="${base}/admin/employee!profile.action?id=
							<#if s["loginAdminId"]?exists>
								${s["loginAdminId"]}
							</#if>"><i class="icon-user"></i> 我的属性 </a>
				  </li>
				  <li><a href="${base}/admin/calendar!list.action?id=
							<#if s["loginAdminId"]?exists>
								${s["loginAdminId"]}
							</#if>"><i class="icon-calendar"></i> 我的日历 </a>
                  </li>
                  <li><a href="${base}/admin/message!list.action?employeeId=
							<#if s["loginAdminId"]?exists>
								${s["loginAdminId"]}
							</#if>"><i class="icon-envelope"></i> 我的消息 
					<#if unReadMessage?exists><#if unReadMessage==0><#else>
						<span class="badge badge-danger">
							${unReadMessage}</#if>
						</span>
					</#if>
					</a>
                  </li>
                  <li><a href="${base}/admin/task!list.action?employeeId=
							<#if s["loginAdminId"]?exists>
								${s["loginAdminId"]}
							</#if>"><i class="icon-tasks"></i> 我的任务
					<#if unDotask?exists><#if unDotask==0><#else>
						<span class="badge badge-success">
							${unDotask}</#if>
						</span>
					</#if>
					</a>
                  </li>
               	  <li class="divider"></li>
                  <li><a href="javascript:;" id="trigger_fullscreen"><i class="icon-move"></i> 全屏</a></li>
                  <li><a href="${base}/admin/admin!lock.action"><i class="icon-lock"></i> 锁定</a></li>
                  <li><a href="${base}/admin/admin!logout.action" onclick = "return logout();"><i class="icon-off"></i> 退出</a></li>
               </ul>
            </li>
            <!-- END USER LOGIN DROPDOWN -->
         </ul>
         <!-- END TOP NAVIGATION MENU -->
      </div>
      <!-- END TOP NAVIGATION BAR -->
   </div>
   <script>
   	function logout(){
   		if(confirm("确认退出吗?")==true){
   			return true;
   		}else{
   			return false;
   		}
   	}
   </script>